package com.zt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 预约表
 */
@Data
@TableName("bookings")
public class Bookings implements Serializable {
    /**
     * 预约ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 课程ID
     */
    private Integer courseId;

    /**
     * 课程名称
     */
    private String kc;

    /**
     * 省份
     */
    private String province;

    /**
     * 城市
     */
    private String city;

    /**
     * 区县
     */
    private String district;

    /**
     * 年级
     */
    private String grade;

    /**
     * 预约日期
     */
    private LocalDate bookingDate;

    /**
     * 时间段
     */
    private String timeSlot;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 状态：0-待支付，1-已支付，2-已取消
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    // 详细地址
    private String detailedAddress;

    // 订单信息
    @TableField(exist = false)
    private Order order;

    @TableField(exist = false)
    private Teachers teachers;

    @TableField(exist = false)
    private TeacherRating teacherRating;

    @TableField(exist = false)
    private TeacherCertification teacherCertification;
    /**
     * 序列化版本号
     */
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
} 